/*
                  Profile Class Implementation
*/
#include "Profile.h"

Profile::Profile()
{
    string strName = "";
    iExperience = 0;
    //bCPU = false;
}

Profile::~Profile()
{

}

void Profile::CreateFromString(const string& strCreationString)
{
    vector<string> Vars = SplitString(strCreationString, ",");

    if (Vars.size() < PSF_VARCOUNT)
    {
        return;
    }

    strName = Vars.at(PSF_NAME);
    iExperience = lexical_cast<int>(Vars.at(PSF_EXP));
}

string Profile::getName()
{
    return strName;
}

void Profile::setName(const string& strNewName)
{
    strName = strNewName;
}

int Profile::getExperience()
{
    return iExperience;
}

void Profile::AddExperience(const int& iNewExp)
{
    iExperience += iNewExp;
}

void Profile::setExperience(const int& iNewExp)
{
    iExperience = iNewExp;
}
